package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.IotRegionDTO;
import com.hunttown.mes.rpc.domain.query.IotRegionDTOQuery;

/**
 * created by wangjunfu on 2020-10-05 16:33:40
 */
public interface IotRegionRpcService {

    IotRegionDTO insert(IotRegionDTO iotRegionDTO);

    Boolean updateInfoById(IotRegionDTO iotRegionDTO);

    Boolean updateInfoByQuery(IotRegionDTOQuery iotRegionDTOQuery);

    IotRegionDTO selectById(Integer id);

    //仅供worker使用
    IotRegionDTO selectById(Integer id, Integer entId);

    IotRegionDTO selectObjByQuery(IotRegionDTOQuery iotRegionDTOQuery);

    Page<IotRegionDTO> getListForPage(IotRegionDTOQuery iotRegionDTOQuery);

    Boolean deleteById(Integer id);
}